<template>
  <div>
    <ul>
      <li :key="stu.name" v-for="(stu,index) in stus">
        {{index}} - {{stu.name}} : {{stu.score}}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'ForDemo',
  data() {
    return {
      stus: [{ name: 'jame', score: 555 }, { name: 'meimei', score: 2222 }, { name: '溜溜', score: 5 }],
    };
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  h1, h2 {
    font-weight: normal;
  }

  ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
  }

  /*li {
    display: inline-block;
    margin: 0 10px;
  }*/

  a {
    color: #42b983;
  }
</style>
